-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schedule: avoid data race and panic about scheduler controller #7107
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/check-issue-triage-complete |
Codecov Report
@@ Coverage Diff @@
## master #7107 +/- ##
==========================================
+ Coverage 74.26% 74.38% +0.12%
==========================================
Files 441 442 +1
Lines 47216 47234 +18
==========================================
+ Hits 35064 35135 +71
+ Misses 9063 9003 -60
- Partials 3089 3096 +7
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
seems like DATA RACE in ci
|
|
||
// Wait blocks until the FlexibleWaitGroup counter is zero or negative. | ||
func (fwg *FlexibleWaitGroup) Wait() { | ||
fwg.Lock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it always hold the lock?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, fwg.cond.Wait() will work
What problem does this PR solve?
Issue Number: Close #7106
What is changed and how does it work?
add a flexible wait group, because WaitGroup must ensure previous Wait has returned before added again.
Check List
Tests
Release note